const home = require('../service/home');
const user = require('../service/user');
const demo = require('../service/demo');
const type = require('../service/type');

module.exports = [{
    path: '/',
    name: '首页',
    service: home['index'],
  },

  {
    path: '/demo',
    name: 'demo',
    children: [{
        path: '/add',
        name: '列表',
        service: demo['add']
      },
      {
        path: '/list',
        name: '列表',
        service: demo['list']
      },
    ]
  },

  {
    // 模块名称
    path: '/type',
    name: '类别',
    children: [{
        path: '/add',
        name: '添加分类',
        service: type['add']
      },
      {
        path: '/update',
        name: '更新分类',
        service: type['update']
      },
      {
        path: '/list',
        name: '分类列表',
        service: type['list']
      },
      {
        path: '/del',
        name: '删除分类',
        service: type['del']
      }
    ]
  }
]
